using UnityEngine;

namespace Gj
{
    public class BasePart : MonoBehaviour
    {
        private GameObject _gameObject;
        private Transform _transform;

        public Transform Transform
        {
            get
            {
                if (_transform == null) _transform = transform;
                return _transform;
            }
        }

        public GameObject GameObject
        {
            get
            {
                if (_gameObject == null) _gameObject = gameObject;
                return _gameObject;
            }
        }

        public virtual void Init()
        {
        }

        public virtual void Destroy()
        {
            
        }
        
    }
}